package com.diandian.backend.entrance.client;

import com.diandian.backend.entrance.client.dto.DouyinLifeMemberInfoAddParamDTO;
import com.diandian.backend.entrance.client.dto.DouyinLifeMemberInfoDeleteParamDTO;
import com.diandian.backend.entrance.client.dto.MemberDouyinLifeMemberInfoPageParamDTO;
import com.diandian.base.boot.starter.response.BaseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient("diandian-member")
//@FeignClient(value = "business-diandian-log", url = "http://localhost:8082", path = "")
public interface DianDianMemberClient {

    @PostMapping("/douyin/life/member/info/page")
    BaseResult page(@RequestHeader(value = "belong") String belong, @RequestBody MemberDouyinLifeMemberInfoPageParamDTO param);

    @PostMapping("/douyin/life/member/info/sych")
    BaseResult sych(@RequestHeader(value = "belong") String belong, @RequestBody DouyinLifeMemberInfoAddParamDTO param);

    @PostMapping("/douyin/life/member/info/remove")
    BaseResult remove(@RequestHeader(value = "belong") String belong, @RequestBody DouyinLifeMemberInfoDeleteParamDTO param);
}
